//
//  WGSetupViewController.m
//  WisdomGardon
//
//  Created by 郭壮 on 16/8/23.
//  Copyright © 2016年 Red Persimmon. All rights reserved.
//

#import "WGSetupViewController.h"

static const NSUInteger kGroupOneCount = 2;
static const NSUInteger kGroupTwoCount = 3;
static const NSUInteger kGroupThreeCount = 2;

typedef NS_ENUM(NSUInteger,WGSetupOption) {
    WGSetupOptionAccountManage,
    WGSetupOptionAccountSafe,
    WGSetupOptionNotification,
    WGSetupOptionPrivicy,
    WGSetupOptionGeneral,
    WGSetupOptionFeedback,
    WGSetupOptionClearCache,
    WGSetupOptionLogout,
};

@interface WGSetupViewController ()

@end

@implementation WGSetupViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    self.view.backgroundColor = ZQColorWithHexString(@"#ececf0");
    self.tableView.tableHeaderView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 0, 10)];
    self.title = @"设置";
}

-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
    NSUInteger index = 0;
    
    switch (indexPath.section) {
        case 0:
            index = indexPath.row;
            break;
        case 1:
            index = kGroupOneCount + indexPath.row;
            break;
        case 2:
            index = kGroupOneCount + kGroupTwoCount + indexPath.row;
        case 3:
            index = kGroupOneCount + kGroupTwoCount + kGroupThreeCount +indexPath.row;
        default:
            break;
    }
    
    switch (index) {
        case WGSetupOptionAccountManage:
            NSLog(@"WGSetupOptionAccountManage");
            break;
        case WGSetupOptionAccountSafe:
            NSLog(@"WGSetupOptionAccountSafe");
            break;
        case WGSetupOptionNotification:
            NSLog(@"WGSetupOptionNotification");
            break;
        case WGSetupOptionPrivicy:
            NSLog(@"WGSetupOptionPrivicy");
            break;
        case WGSetupOptionGeneral:
            NSLog(@"WGSetupOptionGeneral");
            break;
        case WGSetupOptionFeedback:
            NSLog(@"WGSetupOptionFeedback");
            break;
        case WGSetupOptionClearCache:
            NSLog(@"WGSetupOptionClearCache");
            break;
        case WGSetupOptionLogout:
            NSLog(@"WGSetupOptionLogout");
            break;
        default:
            break;
    }
}

@end
